<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body {
            font-family: Microsoft YaHei, Helvetica Neue, Helvetica, STHeiTi, Arial, sans-serif;
            font-size: 12px;
            background-color: #e8e8e8;
        }

        ul {
            width: 1220px;
            padding: 0;
            list-style-type: none;
            margin: 0 auto; /*块级元素居中*/
        }

        li {
            width: 224px;
            height: 223px;
            background-color: white;
            float: left;
            border-radius: 5px;
            margin: 0 10px;
            /*设置超出不显示 显示出圆角*/
            overflow: hidden;
        }
        li:hover{
            position: relative;
            bottom: 5px;
            /*元素阴影:x偏移值 y偏移值 浓度  范围 颜色*/
            box-shadow: 0 0 8px 2px  rgb(41,41,41);
        }

        .t_div > a > img {
            width: 100%;
        }

        .b_div {
            padding: 15px;
        }

        .b_div > a {
            font-size: 14px;
            color: #333333;
            text-decoration: none;
            line-height: 20px;
        }

        .b_div > div {
            margin-top: 12px;

        }

        .free_span {
            color: #4f8dfe;
        }

        .count_span {
            float: right;

        }
        .state{
            display: block;
            width: 44px;
            height: 44px;
            background-image: url("https://cdn.tmooc.cn/tmooc-web/css/img/state-free.png");
            position: absolute;
            top: 0;
        }
        .t_div{
            position: relative;/*作参照*/
        }
    </style>
</head>
<body>
<ul>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///1917dd6be8514e73b300ad324521638e.jpg" alt="">
                <i class="state"></i>

            </a>
        </div>
        <div class="b_div">
            <a href="">HCIA-Datacom华为认证数通工程师</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">157人报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///1917dd6be8514e73b300ad324521638e.jpg" alt="">
                <i class="state"></i>

            </a>
        </div>
        <div class="b_div">
            <a href="">HCIA-Datacom华为认证数通工程师</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">157人报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///1917dd6be8514e73b300ad324521638e.jpg" alt="">
                <i class="state"></i>

            </a>
        </div>
        <div class="b_div">
            <a href="">HCIA-Datacom华为认证数通工程师</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">157人报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///1917dd6be8514e73b300ad324521638e.jpg" alt="">
                <i class="state"></i>

            </a>
        </div>
        <div class="b_div">
            <a href="">HCIA-Datacom华为认证数通工程师</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">157人报名</span>
            </div>
        </div>
    </li>
    <li>
        <div class="t_div">
            <a href="">
                <img src="https://cdn.tmooc.cn/bsfile//courseImg///1917dd6be8514e73b300ad324521638e.jpg" alt="">
                <i class="state"></i>
            </a>
        </div>
        <div class="b_div">
            <a href="">HCIA-Datacom华为认证数通工程师</a>
            <div>
                <span class="free_span">免费</span>
                <span class="count_span">157人报名</span>
            </div>
        </div>
    </li>
</ul>
</body>
</html>